Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632542 Views

Latest files of /cody/solygambas/html-css-javascript-projects/050-insect catch game

style.css cody/solygambas/html-css-javascript-projects/050-insect catch game/style.css
106 Views
0 Comments
@import url("https://fonts.googleapis.com/css?family=Press+Start+2P&display=swap");

* {
box-sizing: border-box;
}

body {
background-color: #516dff;
index.html cody/solygambas/html-css-javascript-projects/050-insect catch game/index.html
270 Views
0 Comments
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Catch The Insect</title>
</head>
script.js cody/solygambas/html-css-javascript-projects/050-insect catch game/script.js
160 Views
0 Comments
const screens = document.querySelectorAll(".screen");
const chooseInsectButtons = document.querySelectorAll(".choose-insect-btn");
const startButton = document.getElementById("start-btn");
const gameContainer = document.getElementById("game-container");
const timeElement = document.getElementById("time");
const scoreElement = document.getElementById("score");
const message = document.getElementById("message");
let seconds = 0;